package com.example.demo.entity.mybatisplus;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * @title:	SysConfigEntity
 * @author:	许子文
 * @date:	2021年9月30日 
 * @descirption: 系统属性实体类
 *
 */
@TableName("tb_sys_config")
public class SysConfigEntity extends Model<SysConfigEntity>{
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_UUID)
	private String key_id;
	
	/**
	 * 属性键
	 */
	private String conf_key;
	
	/**
	 * 属性值
	 */
	private String conf_value;
	
	/**
	 * 备注
	 */
	private String remark;
	
	/**
	 * 属性类型  1文字  2图片
	 */
	private String conf_type;
	
	/**
	 * 图片保存类型 0本地服务器  1sftp服务器  2OSS
	 */
	private String img_save_type;
	
	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "CTT")
	private Date update_time;
	
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "CTT")
	private Date create_time;

	public String getImg_save_type() {
		return img_save_type;
	}

	public void setImg_save_type(String img_save_type) {
		this.img_save_type = img_save_type;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public String getKey_id() {
		return key_id;
	}

	public void setKey_id(String key_id) {
		this.key_id = key_id;
	}

	public String getConf_key() {
		return conf_key;
	}

	public void setConf_key(String conf_key) {
		this.conf_key = conf_key;
	}

	public String getConf_value() {
		return conf_value;
	}

	public void setConf_value(String conf_value) {
		this.conf_value = conf_value;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getConf_type() {
		return conf_type;
	}

	public void setConf_type(String conf_type) {
		this.conf_type = conf_type;
	}

	@Override
	public Serializable pkVal() {
		// TODO Auto-generated method stub
		return this.key_id;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSONObject.toJSONString(this);
	}
}
